
import 'dart:convert';

LoginDto loginDtoFromJson(String str) => LoginDto.fromJson(json.decode(str));

String loginDtoToJson(LoginDto data) => json.encode(data.toJson());

class LoginDto {
    LoginDto({
        this.accessCode,
        this.firstName,
        this.lastName,
        this.password,
        this.sessionType,
        this.userName,
    });

    String? accessCode;
    String? firstName;
    String? lastName;
    String? password;
    String? sessionType;
    String? userName;

    factory LoginDto.fromJson(Map<String, dynamic> json) => LoginDto(
        accessCode: json["accessCode"],
        firstName: json["firstName"],
        lastName: json["lastName"],
        password: json["password"],
        sessionType: json["sessionType"],
        userName: json["userName"],
    );

    Map<String, dynamic> toJson() => {
        "accessCode": accessCode,
        "firstName": firstName,
        "lastName": lastName,
        "password": password,
        "sessionType": sessionType,
        "userName": userName,
    };
}
